<?
//引入所有子系统信息
include_once("../../../common/model/extender_import.php");



//获取板块的设置
include_once("model/setting.php");

$data['member']=select_one_line_all_items($table_Prefix."member","nid = '".$_REQUEST ['nid']."'");


//这里应该鉴权，看该用户信息，能否显示出来给当前session用户查看。
if($member_setting['visitmod']=="仅所属")
{
 if($data['member']['agentnid'] != $_SESSION['nid'])
 {
   echo "仅所属 权限错误 并且记录到 操作日志";
   exit;
 }
}


if($member_setting['visitmod']=="所属及无所属"){

    if (
        ($data['member']['agentnid']!== null) and ($data['member']['agentnid'] != $_SESSION['nid'])
       )
    {
        echo $data['member']['agentnid'];
        echo "所属及无所属 权限错误 并且记录到 操作日志";
        exit;
    }
}





//员工
$employee_list         = select_lines_all_items($table_Prefix . "employee", "nid desc", "status = '在职' ", "0");




//这里搜索tb的超时记录
if($_REQUEST['select_tb_ontime']=="")
{
    $ontime="";
}
else
{
    $ontime=" and date like '%".$_REQUEST['select_tb_ontime']."%' ";
}





$tbkpi=select_lines_all_items($table_Prefix."teambition_task",
                              " nid desc",
                              "nid > 0".$status.$ontime  ,
                              "");



?>

